package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 房间状态 设施
 */
@TableName("s_roomState")
public class RoomFacilityBean {
    //房间状态编号
    @TableId("pk_Id")
    public int id;
    //房间损害描述
    @TableField("s_describe")
    public String describe;
    //房间报损时间
    @TableField("s_date")
    public LocalDate date = LocalDate.now();
    //解决状态
    @TableField("s_state")
    private String state = "未解决";
    @TableField("fk_roomId")
    private Integer roomId;
    //房间对象
    @TableField(exist = false)
    private RoomBean roomBean;

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "RoomFacilityBean{" +
                "id=" + id +
                ", describe='" + describe + '\'' +
                ", date=" + date +
                ", state='" + state + '\'' +
                ", roomBean=" + roomBean +
                '}';
    }

    public RoomFacilityBean(String describe, Integer roomId) {
        this.describe = describe;
        this.roomBean = new RoomBean();
        roomBean.setId(roomId);
    }

    public RoomFacilityBean() {
    }
}
